import request from '@/utils/request';

/**
 * 获取调薪记录列表
 */
export const getSalaryAdjustmentList_API = async (params: any) => await request.get('/api/getSalaryAdjustmentList');

/**
 * 获取调薪记录详情
 */
export const getSalaryAdjustmentDetail_API = async (params: any) => await request.get(`/api/getSalaryAdjustmentDetail/${params.salaryAdjustmentId}`);

/**
 * 添加调薪记录（仅管理员）
 */
export const addSalaryAdjustment_API = async (params: any) => await request.post('/api/addSalaryAdjustment', params);

/**
 * 删除调薪记录（仅管理员）
 */
export const deleteSalaryAdjustment_API = async (params: any) => await request.delete(`/api/deleteSalaryAdjustment/${params.salaryAdjustmentId}`);

/**
 * 修改调薪记录（仅管理员）
 */
export const updateSalaryAdjustment_API = async (params: any) => await request.put(`/api/updateSalaryAdjustment/${params.salaryAdjustmentId}`, params);


export default {
    getSalaryAdjustmentList_API,
    getSalaryAdjustmentDetail_API,
    addSalaryAdjustment_API,
    deleteSalaryAdjustment_API,
    updateSalaryAdjustment_API
}